﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Yuchen.ExtJSDTSGenerator.UI.Models
{
    public class ExtMember
    {
        public string Name { get; set; }
        public string Type { get; set; }
        public bool IsStatic { get; set; }
        public bool IsProtected { get; set; }
        public string Description { get; set; }

        public override string ToString()
        {
            if (IsStatic)
            {
                return string.Format("static {0}:{1}", Name, Type);
            }
            return string.Format("{0}:{1}", Name, Type);
        }
    }
}
